define(()=>{
    return function(goods){
        return goods.reduce((prev, now)=>now.check ? prev + now.num*now.price : prev, 0)
    }
})